﻿using AiQiuQuan.Sport.Model.Enums;
using System.Text.Json.Serialization;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 活动、约球、比赛订单分页请求
    /// </summary>
    public class GameOrderPageRequestDto : PageRequest
    {
        /// <summary>
        /// 业务类型：5活动订单、5约球订单、10比赛订单
        /// </summary>
        public BusinessTypeEnum? BusinessType { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string? ProductName { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string? OrderNo { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string? PhoneNo { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 地点
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 状态：1未支付、2已支付、5部分退款、6全部退款、8已完成
        /// </summary>
        public GameOrderStateEnum? OrderState { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTimeOffset? Date { get; set; }

        /// <summary>
        /// 是否只查询自己的订单，针对非管理平台用户字段
        /// </summary>
        public bool IsOnlySelf { get; set; }

        /// <summary>
        /// 是否是平台访问
        /// </summary>
        [JsonIgnore]
        public bool IsPlatform { get; set; }
    }
}
